//
//  TopicOtherTModel.m
//  礼物go
//
//  Created by dllo on 16/5/25.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "TopicOtherTModel.h"


@implementation TopicOtherTModel

-(void)setValue:(id)value forUndefinedKey:(NSString *)key{
    if ([key isEqualToString:@"id"]) {
        self.myId = value;
    }
}

-(void)setChannels:(NSMutableArray *)channels{
    _channels = channels;
    NSMutableArray *array = [NSMutableArray array];
    for (NSDictionary *dic in channels) {
        TopicOtherTDetailModel *detailModel = [[TopicOtherTDetailModel alloc] init];
        [detailModel setValuesForKeysWithDictionary:dic];
        [array addObject:detailModel];
    }
    _channels = [NSMutableArray arrayWithArray:array];
}






@end
